const express = require("express");
const settingRouter = express.Router();
const { verifyToken } = require("../jsonwebtoken/index");

const { GetSettingTabs } = require("../API/Setting/GetSettingTabs");
const { GetIntertesLabelList } = require("../API/Setting/GetIntertesLabelList");
const { GetWorkDirectionList } = require("../API/Setting/GetWorkDirectionList");
const { GetUserInfo } = require("../API/Setting/GetUserInfo");
const { SaveUserInfo } = require("../API/Setting/SaveUserInfo");

settingRouter.get("/GetSettingTabs", GetSettingTabs);
settingRouter.get("/GetIntertesLabelList", GetIntertesLabelList);
settingRouter.get("/GetWorkDirectionList", GetWorkDirectionList);
settingRouter.get("/GetUserInfo", verifyToken, GetUserInfo);
settingRouter.post("/SaveUserInfo", verifyToken, SaveUserInfo);

module.exports = settingRouter;
